﻿@model CallCenter.Data.Models.RegisterViewModel

@{
    ViewBag.Title = "Reset Password";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<style>
    .form-control {
        width: 25%;
    }

    .Success {
        color: green;
        font-weight: bolder;
    }

    .Fail {
        color: red;
        font-weight: bolder;
    }

    /*input[type="text"].input-validation-error, input[type="password"].input-validation-error {
        border: 1px solid black;
    }*/
</style>
<hr />

@using (Html.BeginForm("ResetPassword", "Account", FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
    <div class="form-group">
        <label class="col-md-2 control-label" style="font-size: 20px;">
            Manage User 
        </label>
    </div>
    if (@ViewBag.Status == "Success")
    {
    <div class="Success">
        @ViewBag.Message
    </div>
    }
    else
    {
    <div class="Fail">
        @ViewBag.Message
    </div>
    }
  
    <div class="form-group">
        @Html.Label(" User", new { @class = "col-md-2 control-label" })
        <div class="col-md-10">
            @*@Html.DropDownList("Name")*@
            @Html.DropDownList("Id", (IEnumerable<SelectListItem>)ViewBag.UserID, new { @class = "form-control" })
        </div>
    </div>
    
    <div class="form-group">
        @Html.LabelFor(m => m.Password, new { @class = "col-md-2 control-label" })
        <div class="col-md-10">
            @Html.PasswordFor(m => m.Password, new { @class = "form-control" })
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.ConfirmPassword, new { @class = "col-md-2 control-label" })
        <div class="col-md-10">
            @Html.PasswordFor(m => m.ConfirmPassword, new { @class = "form-control" })
        </div>
    </div>
    
    
    <div class="form-group">
        <div class="col-md-offset-2 col-md-10">
            <input type="submit" class="btn btn-default" value="Update" />
        </div>
    </div>
}

